package com.freedom.admin.infrastructure.persistence.repository;

import com.freedom.admin.domain.repository.MenuRepository;
import com.freedom.admin.infrastructure.persistence.mapper.SysMenuMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class MenuRepositoryImpl implements MenuRepository {

    private final SysMenuMapper sysMenuMapper;

    @Override
    public List<Integer> findIdByRoleId(Integer roleId) {
        return sysMenuMapper.selectIdByRoleId(roleId);
    }
}
